ZetaProducer.RuntimeBusinessLogic.Code.Scripting.InterpreterException ----------------- Skript-Fehler: --------------- Objekt erforderlich: 'assetCategory' --------------- Zeile 433, Spalte 14. --------------- Quelltext: 001: option explicit 002: 003: ExecuteScript__ 004: (...Versteckte Zeilen...) 367: 368: 369: 370: public sub ExecuteScript__() 371: 372: 373: dim article 374: set article = Context.Scope.CurrentPageItem 375: dim items 376: set items = Context.Scope.CurrentPage.ScriptingGetPageItems( Context.Scope.Library.VersioningVersion ) 377: 378: dim hassame 379: hassame = false 380: 381: dim i 382: for i=0 to items.Count-1 383: dim item 384: set item = items(i) 385: 386: if item.IsActive and (item.StyleName = "Bilderalbum" or item.StyleName = "Einzelnes Bild") then 387: if item.ID = article.ID and not hassame then 388: 389: 390: Context.Write "" & vbCrLf 391: Context.Write "" & vbCrLf 392: Context.Write "" 393: 394: if Context.Scope.CurrentPage.GetInheritedAttribute("picgallery_language").Value = "de" then 395: 396: Context.Write "" & vbCrLf 397: Context.Write "" & vbCrLf 398: Context.Write "" 399: 400: elseif Context.Scope.CurrentPage.GetInheritedAttribute("picgallery_language").Value = "en" then 401: 402: Context.Write "" & vbCrLf 403: Context.Write "" & vbCrLf 404: Context.Write "" 405: 406: end if 407: 408: Context.Write "" & vbCrLf 409: Context.Write "" & vbCrLf 415: Context.Write "" 416: 417: end if 418: hassame = true 419: end if 420: next 421: 422: 423: Context.Write "" & vbCrLf 424: Context.Write "" & vbCrLf 425: Context.Write "" 426: 427: 428: dim albumID : albumID = Context.Scope.CurrentArticle.Values.GetValue("Album") 429: dim thumbnailWidth : thumbnailWidth = Context.Scope.CurrentArticle.Values.GetValue("Breite der Vorschaubilder") 430: dim thumbnailHeight : thumbnailHeight = CInt((thumbnailWidth*3)/4) 431: dim imagesPerRow : imagesPerRow = Context.Scope.CurrentArticle.Values.GetValue("Anzahl Vorschaubilder pro Zeile") 432: dim assetCategory : set assetCategory = Context.Scope.CurrentWebProject.GetAssetCategoryByID( albumID ) 433: dim images : set images = assetCategory.Images 434: 435: dim rowIndex : dim colIndex : dim index 436: dim rowCount : rowCount = images.Count \ imagesPerRow 437: if images.Count mod imagesPerRow > 0 then 438: rowCount = rowCount + 1 439: end if 440: 441: Context.Scope.Library.Log images.Count & " images..." 442: Context.Scope.Library.CheckAsyncStopProcessing 443: 444: ' Must use a prefix to allow multiple instances of the JavaScript on the page. 445: dim prefix 446: prefix = "prefix_1194_" 447: 448: 449: Context.Write "" & vbCrLf 450: Context.Write "" & vbCrLf 455: Context.Write "
| " & vbCrLf
615: Context.Write " " & vbTab & "" & vbCrLf
628: Context.Write " " & vbTab & "" & vbTab & " " & vbCrLf
640: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & ""
641:
642: if Context.Scope.CurrentArticle.Values.GetValue("Bilder nummerieren") = 1 then
643:
644: Context.Write ""
645:
646: Context.Write index+1
647:
648: Context.Write ""
649:
650: end if
651:
652: Context.Write "" & vbCrLf
653: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & ""
654:
655: if Context.Scope.CurrentArticle.Values.GetValue("Bildname anzeigen") = 1 then
656:
657: Context.Write ""
658:
659: Context.Write image.Name
660:
661: Context.Write ""
662:
663: end if
664:
665: Context.Write "" & vbCrLf
666: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & ""
667:
668: if Context.Scope.CurrentArticle.Values.GetValue("Bildbeschreibung anzeigen") = 1 then
669:
670: Context.Write "" & vbCrLf
671: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & ""
672:
673: if Context.Scope.CurrentArticle.Values.GetValue("Bildname anzeigen") = 1 then
674:
675: Context.Write " " & vbCrLf
690: Context.Write " "
691:
692: end if
693:
694: Context.Write "" & vbCrLf
695: Context.Write " " 676: 677: end if 678: 679: Context.Write "" 680: 681: Context.Write image.Description 682: 683: Context.Write "" & vbCrLf 684: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" 685: 686: end if 687: 688: Context.Write "" & vbCrLf 689: Context.Write " " & vbTab & " | " & vbCrLf
696: Context.Write " "
697:
698: else
699:
700: Context.Write "" & vbCrLf
701: Context.Write " " & vbCrLf 702: Context.Write " " 703: 704: end if 705: 706: Context.Write "" & vbCrLf 707: Context.Write " " 708: 709: 710: index = index + 1 711: next 712: 713: 714: Context.Write "" & vbCrLf 715: Context.Write " |
| \\" & vbCrLf\\r\\n615: Context.Write \\" \\" & vbTab & \\"\\" & vbCrLf\\r\\n628: Context.Write \\" \\" & vbTab & \\"\\" & vbTab & \\" \\" & vbCrLf\\r\\n640: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n641: \\r\\n642: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bilder nummerieren\\") = 1 then \\r\\n643: \\r\\n644: Context.Write \\"\\"\\r\\n645: \\r\\n646: Context.Write index+1\\r\\n647: \\r\\n648: Context.Write \\"\\"\\r\\n649: \\r\\n650: end if \\r\\n651: \\r\\n652: Context.Write \\"\\" & vbCrLf\\r\\n653: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n654: \\r\\n655: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 then \\r\\n656: \\r\\n657: Context.Write \\"\\"\\r\\n658: \\r\\n659: Context.Write image.Name\\r\\n660: \\r\\n661: Context.Write \\"\\"\\r\\n662: \\r\\n663: end if \\r\\n664: \\r\\n665: Context.Write \\"\\" & vbCrLf\\r\\n666: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n667: \\r\\n668: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildbeschreibung anzeigen\\") = 1 then \\r\\n669: \\r\\n670: Context.Write \\"\\" & vbCrLf\\r\\n671: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n672: \\r\\n673: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 then \\r\\n674: \\r\\n675: Context.Write \\" \\" & vbCrLf\\r\\n690: Context.Write \\" \\"\\r\\n691: \\r\\n692: end if \\r\\n693: \\r\\n694: Context.Write \\"\\" & vbCrLf\\r\\n695: Context.Write \\" \\"\\r\\n676: \\r\\n677: end if \\r\\n678: \\r\\n679: Context.Write \\"\\"\\r\\n680: \\r\\n681: Context.Write image.Description\\r\\n682: \\r\\n683: Context.Write \\"\\" & vbCrLf\\r\\n684: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n685: \\r\\n686: end if \\r\\n687: \\r\\n688: Context.Write \\"\\" & vbCrLf\\r\\n689: Context.Write \\" \\" & vbTab & \\" | \\" & vbCrLf\\r\\n696: Context.Write \\" \\"\\r\\n697: \\r\\n698: else\\r\\n699: \\r\\n700: Context.Write \\"\\" & vbCrLf\\r\\n701: Context.Write \\" \\" & vbCrLf\\r\\n702: Context.Write \\" \\"\\r\\n703: \\r\\n704: end if\\r\\n705: \\r\\n706: Context.Write \\"\\" & vbCrLf\\r\\n707: Context.Write \\" \\"\\r\\n708: \\r\\n709: \\r\\n710: index = index + 1\\r\\n711: next\\r\\n712: \\r\\n713: \\r\\n714: Context.Write \\"\\" & vbCrLf\\r\\n715: Context.Write \\" |
| \\" & vbCrLf\\r\\n615: Context.Write \\" \\" & vbTab & \\"\\" & vbCrLf\\r\\n628: Context.Write \\" \\" & vbTab & \\"\\" & vbTab & \\" \\" & vbCrLf\\r\\n640: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n641: \\r\\n642: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bilder nummerieren\\") = 1 then \\r\\n643: \\r\\n644: Context.Write \\"\\"\\r\\n645: \\r\\n646: Context.Write index+1\\r\\n647: \\r\\n648: Context.Write \\"\\"\\r\\n649: \\r\\n650: end if \\r\\n651: \\r\\n652: Context.Write \\"\\" & vbCrLf\\r\\n653: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n654: \\r\\n655: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 then \\r\\n656: \\r\\n657: Context.Write \\"\\"\\r\\n658: \\r\\n659: Context.Write image.Name\\r\\n660: \\r\\n661: Context.Write \\"\\"\\r\\n662: \\r\\n663: end if \\r\\n664: \\r\\n665: Context.Write \\"\\" & vbCrLf\\r\\n666: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n667: \\r\\n668: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildbeschreibung anzeigen\\") = 1 then \\r\\n669: \\r\\n670: Context.Write \\"\\" & vbCrLf\\r\\n671: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n672: \\r\\n673: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 then \\r\\n674: \\r\\n675: Context.Write \\" \\" & vbCrLf\\r\\n690: Context.Write \\" \\"\\r\\n691: \\r\\n692: end if \\r\\n693: \\r\\n694: Context.Write \\"\\" & vbCrLf\\r\\n695: Context.Write \\" \\"\\r\\n676: \\r\\n677: end if \\r\\n678: \\r\\n679: Context.Write \\"\\"\\r\\n680: \\r\\n681: Context.Write image.Description\\r\\n682: \\r\\n683: Context.Write \\"\\" & vbCrLf\\r\\n684: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n685: \\r\\n686: end if \\r\\n687: \\r\\n688: Context.Write \\"\\" & vbCrLf\\r\\n689: Context.Write \\" \\" & vbTab & \\" | \\" & vbCrLf\\r\\n696: Context.Write \\" \\"\\r\\n697: \\r\\n698: else\\r\\n699: \\r\\n700: Context.Write \\"\\" & vbCrLf\\r\\n701: Context.Write \\" \\" & vbCrLf\\r\\n702: Context.Write \\" \\"\\r\\n703: \\r\\n704: end if\\r\\n705: \\r\\n706: Context.Write \\"\\" & vbCrLf\\r\\n707: Context.Write \\" \\"\\r\\n708: \\r\\n709: \\r\\n710: index = index + 1\\r\\n711: next\\r\\n712: \\r\\n713: \\r\\n714: Context.Write \\"\\" & vbCrLf\\r\\n715: Context.Write \\" |